Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubtreeCache: Use log tile funcs directly #2398

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

pav-kv
Copy link
Contributor

@pav-kv pav-kv commented Mar 11, 2021

This change makes the SubtreeCache use log tile population functions directly,
as it no longer needs to be log/map polymorphic.

#2378

@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #2398 (5703118) into master (fa9aa84) will decrease coverage by 0.02%.
The diff coverage is 62.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2398      +/-   ##
==========================================
- Coverage   65.78%   65.76%   -0.03%     
==========================================
  Files         107      107              
  Lines        7749     7743       -6     
==========================================
- Hits         5098     5092       -6     
  Misses       2119     2119              
  Partials      532      532              
Impacted Files Coverage Δ
storage/cache/subtree_cache.go 53.76% <50.00%> (-0.24%) ⬇️
storage/tools/dump_tree/dumplib.go 41.35% <50.00%> (-0.25%) ⬇️
storage/cache/log_tile.go 65.00% <65.00%> (ø)
log/operation_manager.go 87.30% <0.00%> (-1.06%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa9aa84...5703118. Read the comment docs.

@pav-kv pav-kv changed the title Subtree cache no more SubtreeCache: use log tile funcs directly Mar 12, 2021
@pav-kv pav-kv marked this pull request as ready for review March 12, 2021 00:11
@pav-kv pav-kv requested a review from a team as a code owner March 12, 2021 00:11
@pav-kv
Copy link
Contributor Author

pav-kv commented Mar 12, 2021

I recommend reviewing commit-by-commit, with "Hide whitespace changes" enabled.

@pav-kv pav-kv changed the title SubtreeCache: use log tile funcs directly SubtreeCache: Use log tile funcs directly Mar 12, 2021
@@ -14,10 +14,7 @@

package storage

import (
"github.com/google/trillian/storage/storagepb"
"github.com/google/trillian/storage/tree"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This builds without tree being imported?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look 2 lines below :)

@pav-kv pav-kv merged commit d08ee7c into google:master Mar 12, 2021
@pav-kv pav-kv deleted the subtree_cache_no_more branch March 12, 2021 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants